-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rds_instance: map Tags parameters from dict to list on restore_db_instance_from_db_snapshot method #414
Conversation
Also, map Tags parameters from the dict to list during `restore_db_instance_from_db_snapshot` method additionally to existing `create_db_instance` and `create_db_instance_read_replica`
Hi @vorotech, thank you for contributing. May you kindly control if you pushed all your changes? |
hi @alinabuzachis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vorotech I believe @alinabuzachis was trying to politely ask if you've pushed all of your commits. (the way its phrased looks very much like the way you might politely ask in German)
The rds_instance module isn't the easiest to follow but I believe this is the right change.
Please add a changelog fragment: https://docs.ansible.com/ansible/latest/community/development_process.html#changelogs-how-to
Given that the tests currently don't exercise the "creation_source: snapshot" functionality I'd not block on the lack of integration test for this change, but it would be fantastic if you could update our integration tests to exercise this functionality and test setting tags during restoration from a snapshot. tests/integration/targets/rds_instance/tasks/test_snapshot.yml
@vorotech Sorry it's taken a while to get this merged. Many thanks for your submission. This fix should be available once version 1.5.0 of this collection is released (or 2.0.0 if we skip 1.5.0) |
…tch-1 rds_instance: map Tags parameters from dict to list on restore_db_instance_from_db_snapshot method Reviewed-by: https://github.com/apps/ansible-zuul This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@36f8a05
…tch-1 rds_instance: map Tags parameters from dict to list on restore_db_instance_from_db_snapshot method Reviewed-by: https://github.com/apps/ansible-zuul This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@36f8a05
…tch-1 rds_instance: map Tags parameters from dict to list on restore_db_instance_from_db_snapshot method Reviewed-by: https://github.com/apps/ansible-zuul This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@9827a2b
rds_instance: map Tags parameters from dict to list on restore_db_instance_from_db_snapshot method Reviewed-by: https://github.com/apps/ansible-zuul
rds_instance: map Tags parameters from dict to list on restore_db_instance_from_db_snapshot method Reviewed-by: https://github.com/apps/ansible-zuul
rds_instance: map Tags parameters from dict to list on restore_db_instance_from_db_snapshot method Reviewed-by: https://github.com/apps/ansible-zuul
…ollections#414) EC2_instance: add support for controlling metadata options SUMMARY Adding support for controlling the metadata options, 'Metadata Accessible' and 'Metadata Version' in amazon.aws.ec2_instance. Fixes ansible-collections#399 ISSUE TYPE Feature Pull Request COMPONENT NAME amazon.aws.ec2_instance Reviewed-by: Jill R <None> Reviewed-by: Abhijeet Kasurde <None> Reviewed-by: Mark Chappell <None> Reviewed-by: None <None>
SUMMARY
Map the
parameters['Tags']
from dict to list withansible_dict_to_boto3_tag_list
onrestore_db_instance_from_db_snapshot
method, additionally to existingcreate_db_instance
andcreate_db_instance_read_replica
methods.This change will fix the case when db is created from the snaphot and the
tags
parameter is specified onrds_instance
module.ISSUE TYPE
COMPONENT NAME
rds_instance.py
ADDITIONAL INFORMATION
Before the fix, the error is thrown by module: